package com.ruoyi.system.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备故障信息对象 T_ErrorLog
 *
 * @author ruoyi
 * @date 2024-09-11
 */
@Data
public class TErrorlog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 堆垛机编号 */
    @Excel(name = "堆垛机编号")
    private String decID;

    /** 设备故障代码 */
    @Excel(name = "设备故障代码")
    private String errTextID;

    /** 设备故障描述 */
    @Excel(name = "设备故障描述")
    private String errText;

    /** 报警起始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "报警起始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date errordate;

    /** 报警结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "报警结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date handledate;

    /** 操作人 */
    @Excel(name = "操作人")
    private String operator;

    /** 状态 */
    @Excel(name = "状态")
    private Long sts;

    /** 类型 */
    @Excel(name = "类型")
    private String dectype;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String online;

    /** plcid */
    @Excel(name = "plcid")
    private String plcid;

    @TableField(exist = false)
    private String[] errdates;
    @TableField(exist = false)
    private String errStartTime;
    @TableField(exist = false)
    private String errEndsTime;

    @TableField(exist = false)
    private String[] handledates;
    @TableField(exist = false)
    private String handleStartTime;
    @TableField(exist = false)
    private String handleEndsTime;

    public void setDecID(String decID)
    {
        this.decID = decID;
    }

    public String getDecID()
    {
        return decID;
    }
    public void setErrTextID(String errTextID)
    {
        this.errTextID = errTextID;
    }

    public String getErrTextID()
    {
        return errTextID;
    }
    public void setErrText(String errText)
    {
        this.errText = errText;
    }

    public String getErrText()
    {
        return errText;
    }
    public void setErrordate(Date errordate)
    {
        this.errordate = errordate;
    }

    public Date getErrordate()
    {
        return errordate;
    }
    public void setHandledate(Date handledate)
    {
        this.handledate = handledate;
    }

    public Date getHandledate()
    {
        return handledate;
    }
    public void setOperator(String operator)
    {
        this.operator = operator;
    }

    public String getOperator()
    {
        return operator;
    }
    public void setSts(Long sts)
    {
        this.sts = sts;
    }

    public Long getSts()
    {
        return sts;
    }
    public void setDectype(String dectype)
    {
        this.dectype = dectype;
    }

    public String getDectype()
    {
        return dectype;
    }
    public void setOnline(String online)
    {
        this.online = online;
    }

    public String getOnline()
    {
        return online;
    }
    public void setPlcid(String plcid)
    {
        this.plcid = plcid;
    }

    public String getPlcid()
    {
        return plcid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("decID", getDecID())
            .append("errTextID", getErrTextID())
            .append("errText", getErrText())
            .append("errordate", getErrordate())
            .append("handledate", getHandledate())
            .append("operator", getOperator())
            .append("sts", getSts())
            .append("dectype", getDectype())
            .append("online", getOnline())
            .append("plcid", getPlcid())
            .toString();
    }
}
